A strongly-typed sequence of 4 variously typed values.
- T1
- The first value type.
- T2
- The second value type.
- T3
- The third value type.
- T4
- The fourth value type.
A Tuple is an immutable, strongly typed sequence of variously typed values with each value lacking an otherwise meaningful name aside from its position.
Namespace: Cadenza
Assembly: Cadenza (in Cadenza.dll)
Assembly Versions: 0.1.0.0
See Also: Inherited members from object.
⊟ Public Constructors
Tuple (T1, T2, T3, T4)Constructs and initializes a new Cadenza.Tuple<T1, T2, T3, T4> instance. ⊟ Public Properties
⊟ Public Methods
⊟ Extension Methods
⊟ Tuple Constructor
Constructs and initializes a new Cadenza.Tuple<T1, T2, T3, T4> instance.
public Tuple (T1 item1, T2 item2, T3 item3, T4 item4)⊟ Parameters
- item1
- A T1 which is used to initialize the Tuple<T1, T2, T3, T4>.Item1 property.
- item2
- A T2 which is used to initialize the Tuple<T1, T2, T3, T4>.Item2 property.
- item3
- A T3 which is used to initialize the Tuple<T1, T2, T3, T4>.Item3 property.
- item4
- A T4 which is used to initialize the Tuple<T1, T2, T3, T4>.Item4 property.
⊟ Remarks
Constructs and initializes a new Cadenza.Tuple<T1, T2, T3, T4> instance.⊟ Requirements
Namespace: Cadenza
Assembly: Cadenza (in Cadenza.dll)
Assembly Versions: 0.1.0.0
⊟ Equals Method
Determines whether the current instance and the specified object have the same value.
⊟ Parameters
- obj
- A object to compare this instance against.
⊟ Returns
true if obj is a Cadenza.Tuple<T1, T2, T3, T4> and each member of obj and the current instance have the same value (according to EqualityComparer<T>.Equals(`0, `0)); otherwise false is returned.⊟ Remarks
This method checks for value equality (EqualityComparer<T>.Equals(`0, `0)), as defined by each value type.
Note: This method overrides object.Equals(object).⊟ Requirements
Namespace: Cadenza
Assembly: Cadenza (in Cadenza.dll)
Assembly Versions: 0.1.0.0
⊟ GetHashCode Method
Generates a hash code for the current instance.
public override int GetHashCode ()⊟ Returns
A int containing the hash code for this instance.⊟ Remarks
Note: This method overrides object.GetHashCode.⊟ Requirements
Namespace: Cadenza
Assembly: Cadenza (in Cadenza.dll)
Assembly Versions: 0.1.0.0
⊟ Item1 Property
The first tuple value.
public T1 Item1 { get; }⊟ Value
A T1 which is the first tuple value.⊟ Remarks
The first tuple value.⊟ Requirements
Namespace: Cadenza
Assembly: Cadenza (in Cadenza.dll)
Assembly Versions: 0.1.0.0
⊟ Item2 Property
The second tuple value.
public T2 Item2 { get; }⊟ Value
A T2 which is the second tuple value.⊟ Remarks
The second tuple value.⊟ Requirements
Namespace: Cadenza
Assembly: Cadenza (in Cadenza.dll)
Assembly Versions: 0.1.0.0
⊟ Item3 Property
The third tuple value.
public T3 Item3 { get; }⊟ Value
A T3 which is the third tuple value.⊟ Remarks
The third tuple value.⊟ Requirements
Namespace: Cadenza
Assembly: Cadenza (in Cadenza.dll)
Assembly Versions: 0.1.0.0
⊟ Item4 Property
The fourth tuple value.
public T4 Item4 { get; }⊟ Value
A T4 which is the fourth tuple value.⊟ Remarks
The fourth tuple value.⊟ Requirements
Namespace: Cadenza
Assembly: Cadenza (in Cadenza.dll)
Assembly Versions: 0.1.0.0
⊟ ToString Method
Returns a string representation of the value of the current instance.
public override string ToString ()⊟ Returns
A string representation of the value of the current instance.⊟ Remarks
Operation
Returns (, followed by a comma-separated list of the result of calling object.ToString on Tuple<T1, T2, T3, T4>.Item1, Tuple<T1, T2, T3, T4>.Item2, Tuple<T1, T2, T3, T4>.Item3, Tuple<T1, T2, T3, T4>.Item4, followed by ).⊟ Requirements
Namespace: Cadenza
Assembly: Cadenza (in Cadenza.dll)
Assembly Versions: 0.1.0.0